<div class="row">
        <div class="top">首页>审批申请</div>
        <div class="content complete_info">
            <ul class="nav nav-tabs" role="tablist" style="position: relative;">
                <li role="presentation" class="active"><a href="#aaa" aria-controls="aaa" role="tab" data-toggle="tab">基本信息</a></li>
                <!--<li role="presentation"><a href="#bbb" aria-controls="bbb" role="tab" data-toggle="tab">垫款信息</a></li>-->
                <li role="presentation"><a href="#ccc" aria-controls="ccc" role="tab" data-toggle="tab">车辆信息</a></li>
                <li role="presentation"><a href="#ddd" aria-controls="ddd" role="tab" data-toggle="tab">材料列表</a></li>
                <li role="presentation"><a href="#eee" aria-controls="eee" role="tab" data-toggle="tab">业务进度</a></li>
                <if condition='$matInfo.status eq 1'>
                   <li role="presentation"><a href="#ggg" aria-controls="ggg" role="tab" data-toggle="tab">审核详情</a></li>
                  <else/>
                   <li role="presentation"><a href="#fff" aria-controls="fff" role="tab" data-toggle="tab">财务详情</a></li>
                </if>
            </ul>
             <form class="form-horizontal tab-content" method='post'>
                <!--基本信息左内容区-->
                <div class="fl">
                    <div role="tabpanel" class="tab-pane box active" id="aaa">
                        <!-- <h1>基本信息<span>(标*为必填项)</span></h1> -->
                        <div class="info">
                            <ul class="info_top">
                                <li class="active">主贷人</li>
                                <li>紧急联系人</li>
                                <li>担保人</li>
                                <li>配偶</li>
                            </ul>
                            <!--主贷人信息-->
                            <div class="list-block base-info">
                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">客户编号</label>
                                    <input type="text" id="form-field-1" class="bgCcc myCss col-xs-10 col-sm-2" name="entry_no" value="{$info.entry_no}" readonly>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">业务员</label>
                                    <input type="text" id="form-field-2" class="bgCcc myCss col-xs-10 col-sm-2"  name="admin_name" value={$info.admin_name} readonly>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-3">所在部门</label>
                                    <input type="text" id="form-field-3" class="bgCcc myCss col-xs-10 col-sm-2" name="department_name" value="{$info.department_name}" readonly>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-4">业务来源</label>
                                    <select name="service_source" class="myCss col-xs-10 col-sm-2">
                                        <foreach name="serviceSourceItems" item="ss" >
                                        <if condition="$key eq $info['service_source']">
                                            <option value={$key} selected>{$ss}</option>
                                        <else />
                                            <option value={$key}>{$ss}</option>
                                        </if>
                                        </foreach>
                                    </select>
                                </div>

                                <!-- <div class="form-group">
                                </div> -->

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-5">经销商类别</label>
                                    <select name="distributor_type" class="myCss col-xs-10 col-sm-2" id="form-field-5">
                                        <foreach name="distributorItems" item="ss" >
                                        <if condition="$key eq $info['distributor_type']">
                                            <option value={$key} selected>{$ss}</option>
                                        <else />
                                            <option value={$key}>{$ss}</option>
                                        </if>
                                        </foreach>
                                    </select>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-6">经销商</label>
                                    <input type="text" id="form-field-6" class="myCss col-xs-10 col-sm-2" name="dealer_name" value={$info.dealer_name}>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-7">合作等级</label>
                                    <input readonly type="text" id="form-field-7" class="bgCcc myCss col-xs-10 col-sm-2" name="cooperation_level" value={$info.cooperation_level} >
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-8">姓名</label>
                                    <input type="text" id="form-field-8" class="bgCcc myCss col-xs-10 col-sm-2" name="user_name" value={$info.user_name} readonly>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-9">性别</label>
                                    <label class="col-xs-10 col-sm-1">男<input type="radio" value=1 name="sex" {$info['sex'] == 1 ? 'checked' : ''}></label>
                                    <label class="col-xs-10 col-sm-1">女<input type="radio" value=2 name="sex" {$info['sex'] == 2 ? 'checked' : ''}></label>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-10">婚否</label>
                                    <select name="marital_status" id="form-field-10" class="myCss col-xs-10 col-sm-2">
                                        <foreach name="maritalStatusItems" item="v" >
                                        <if condition="$key eq $info['marital_status']">
                                            <option value={$key} selected>{$v}</option>
                                        <else />
                                            <option value={$key}>{$v}</option>
                                        </if>
                                        </foreach>
                                    </select>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-14">身份证号</label>
                                    <input type="text" id="form-field-14" class="bgCcc myCss col-xs-10 col-sm-2" name="identity_no" value={$info.identity_no} readonly>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-11">出生年月</label>
                                    <input type="date" id="form-field-11" class="bgCcc myCss col-xs-10 col-sm-2" name="birth_year_month" value={$info.birth_year_month} readonly>
                                </div>

                                <div class="form-group">
                                     <label class="col-sm-1 control-label no-padding-right" for="form-field-12">年龄</label>
                                    <input type="number" id="form-field-12" class="bgCcc myCss col-xs-10 col-sm-2" name="age" value={$info.age} readonly>
                                     <label class="col-sm-1 control-label no-padding-right" for="form-field-13">手机号</label>
                                    <input type="number" id="form-field-13" class="bgCcc myCss col-xs-10 col-sm-2" name="telephone" value={$info.telephone} readonly>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-15">户籍</label>
                                    <div data-toggle="distpicker" id="household-registration">
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="province" name="home_province"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="city" name="home_city"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="district" name="home_district"></select>
                                        <input style="margin-right: 15px;" id="form-field-16" class="myCss col-xs-10 col-sm-3" type="text" name="address" value={$info.address}>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-17">现居住地</label>
                                    <div data-toggle="distpicker" id="now-address">
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="province" name="now_province"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="city" name="now_city"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="district" name="now_district"></select>
                                        <input style="margin-right: 15px;" id="form-field-18" class="myCss col-xs-10 col-sm-3" type="text" name="now_address" value={$info.now_address}>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-20">房屋类型</label>
                                    <select name="house_type" class="myCss col-xs-10 col-sm-2" id="form-field-20">
                                        <foreach name="houseTypeItems" item="val" >
                                        <if condition="$key eq $info['house_type']">
                                            <option value={$key} selected>{$val}</option>
                                        <else />
                                            <option value={$key}>{$val}</option>
                                        </if>
                                        </foreach>
                                    </select>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-19">学历</label>
                                    <select name="education" class="myCss col-xs-10 col-sm-2" id="form-field-19">
                                        <foreach name="educationItems" item="val" >
                                        <if condition="$key eq $info['education']">
                                            <option value={$key} selected>{$val}</option>
                                        <else />
                                            <option value={$key}>{$val}</option>
                                        </if>
                                        </foreach>
                                    </select>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-23">工作单位</label>
                                    <input type="text" id="form-field-23" placeholder="工作单位" class="myCss col-xs-10 col-sm-3" name="work_company" value="{$info.work_company}">
                                </div>

                                <div class="form-group">
                                 <label class="col-sm-1 control-label no-padding-right" for="form-field-1">所属行业</label>
                                    <input type="text" id="form-field-1" class="myCss col-xs-10 col-sm-2" name="industry" value="{$info.industry}">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-22">工作年限</label>
                                    <select name="work_life" class="myCss col-xs-10 col-sm-2" id="form-field-22">
                                        <foreach name="workYearItems" item="val" >
                                        <if condition="$val eq $info['work_life']">
                                            <option value={$val} selected>{$val}</option>
                                        <else />
                                            <option value={$val}>{$val}</option>
                                        </if>
                                        </foreach>
                                    </select>
                                    <label class="col-sm-1 control-label no-padding-right">单位电话</label>
                                    <input style="margin-right: 15px;width: 80px;" class="myCss  col-xs-10 col-sm-2" placeholder="区号" type="text" name="area_code" value={$info.area_code}>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <input  class="myCss col-xs-10 col-sm-2" placeholder="固定电话" type="text" name="company_tel" value={$info.company_tel}>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-24">单位地址</label>
                                    <div data-toggle="distpicker" id="distpicker">
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="province" name="province"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="city" name="city"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="district" name="district"></select>
                                        <input style="margin-right: 15px;" id="form-field-25" class="myCss col-xs-10 col-sm-3" type="text" name="company_address" value={$info.company_address}>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-left">单位性质</label>
                                    <select name="company_nature" class="myCss col-xs-10 col-sm-2">
                                        <foreach name="companyNatureItems" item="val" >
                                        <if condition="$key eq $info['company_nature']">
                                            <option value={$key} selected>{$val}</option>
                                        <else />
                                            <option value={$key}>{$val}</option>
                                        </if>
                                        </foreach>

                                    </select>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-27">职务职位</label>
                                    <input id="form-field-27" class="myCss col-xs-10 col-sm-2" type="text" name="company_office" value={$info.company_office}>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-21">月收入</label>
                                    <input type="text" id="form-field-3" class="myCss col-xs-10 col-sm-2" name="month_income" value="{$info.month_income}" id="form-field-21">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">备注</label>
                                    <input type="text" id="form-field-2" class="myCss col-xs-10 col-sm-2"  name="note" value={$info.note}>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-left" for="form-field-15">还款卡问题</label>
                                    <select name="loan_question" class="myCss col-xs-10 col-sm-2">
                                        <foreach name="creditQ" item="val" >
                                        <if condition="$key eq $info['loan_question']">
                                            <option value={$key} selected>{$val}</option>
                                        <else />
                                            <option value={$key}>{$val}</option>
                                        </if>
                                        </foreach>
                                    </select>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-15">答案</label>
                                    <input class="myCss col-xs-10 col-sm-2" type="text" name="answer" value={$info.answer}>
                                </div>

                                <div class="item col-50">
                                    <label>调查情况分析:</label>
                                    <textarea class="form-control" name="survey_note" cols="100" rows="3">{$info.survey_note}</textarea>
                                </div>
                            </div>
                            <!--紧急联系人-->
                            <div class="list-block urgent-contactor" style="display: none;">
                                <div class="col-33">
                                    <input type="hidden" name="user_id" value={$info.id}>
                                    <input id="user-status" type="hidden" name="status" value={$info.status}>
                                </div>

                                <div class="form-group">
                                    <label class="no-padding-left col-sm-1 control-label no-padding-right" for="form-field-3">姓名</label>
                                    <input type="hidden" name="urgent_id1" value={$contactors.0.id}>
                                    <input type="text" id="form-field-3" class="myCss col-xs-10 col-sm-1" name="urgent_user_name1" value="{$contactors.0.user_name}">
                                    <label class="no-padding-left col-sm-1 control-label no-padding-right" for="form-field-4">关系</label>
                                    <select name="relationship1" class="myCss col-xs-10 col-sm-1">
                                        <foreach name="relationship" item="val" >
                                        <if condition="$key eq $contactors[0]['relationship']">
                                            <option value={$key} selected>{$val}</option>
                                        <else />
                                            <option value={$key}>{$val}</option>
                                        </if>
                                        </foreach>
                                    </select>
                                    <label class="col-sm-1 control-label no-padding-right">手机号码</label>
                                    <input type="text" id="form-field-1" class="myCss col-xs-10 col-sm-3" name="urgent_tel1" value={$contactors.0.telephone}>
                                </div>

                                <div class="form-group">
                                    <label class="no-padding-left col-sm-1 control-label no-padding-right">姓名</label>
                                    <input type="hidden" name="urgent_id2" value={$contactors.1.id}>
                                    <input type="text" id="form-field-1" class="myCss col-xs-10 col-sm-1" name="urgent_user_name2" value={$contactors.1.user_name}>
                                    <label class="no-padding-left col-sm-1 control-label no-padding-right" style="font-size: 12px;">关系</label>
                                    <select name="relationship2" class="myCss col-xs-10 col-sm-1">
                                        <foreach name="relationship" item="val" >
                                        <if condition="$key eq $contactors[1]['relationship']">
                                            <option value={$key} selected>{$val}</option>
                                        <else />
                                            <option value={$key}>{$val}</option>
                                        </if>
                                        </foreach>
                                    </select>
                                    <label class="col-sm-1 control-label no-padding-right">手机号码</label>
                                    <input type="text" id="form-field-1" class="myCss col-xs-10 col-sm-3" name="urgent_tel2" value={$contactors.1.telephone}>
                                </div>
                            </div>
                            <!--配偶-->
                            <div class="list-block spouse" style="display: none;">
                                <div class="col-33">
                                    <input type="hidden" name="user_id" value={$info.id}>
                                </div>



                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">配偶姓名</label>
                                    <input type="text" id="form-field-1" class="myCss col-xs-10 col-sm-2" name="spouse_name" value="{$info.spouse_name}">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">身份证号</label>
                                    <input type="text" id="form-field-1" class="myCss col-xs-10 col-sm-2" name="spouse_identity_no" value="{$info.spouse_identity_no}">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">年龄</label>
                                    <input type="text" id="form-field-2" class="myCss col-xs-10 col-sm-2"  name="spouse_age" value={$info.spouse_age}>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-19">学历</label>
                                    <select name="spouse_education" class="myCss col-xs-10 col-sm-2" id="form-field-19">
                                        <foreach name="educationItems" item="val" >
                                        <if condition="$key eq $info['spouse_education']">
                                            <option value={$key} selected>{$val}</option>
                                        <else />
                                            <option value={$key}>{$val}</option>
                                        </if>
                                        </foreach>
                                    </select>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-15">户籍</label>
                                    <div data-toggle="distpicker" id="spouse-home">
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="province" name="spouse_home_province"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="city" name="spouse_home_city"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="district" name="spouse_home_district"></select>
                                        <input style="margin-right: 15px;" id="form-field-16" class="myCss col-xs-10 col-sm-3" type="text" name="spouse_address" value={$info.spouse_address}>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-15">现居住地</label>
                                    <div data-toggle="distpicker" id="spouse-now">
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="province" name="spouse_now_province"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="city" name="spouse_now_city"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="district" name="spouse_now_district"></select>
                                        <input style="margin-right: 15px;" id="form-field-16" class="myCss col-xs-10 col-sm-3" type="text" name="spouse_now_address" value={$info.spouse_now_address}>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-20">手机号</label>
                                    <input type="text" id="form-field-2" class="myCss col-xs-10 col-sm-2"  name="spouse_telephone" value={$info.spouse_telephone}>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">工作单位</label>
                                    <input type="text" id="form-field-2" class="myCss col-xs-10 col-sm-2"  name="spouse_company" value={$info.spouse_company}>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">工作年限</label>
                                    <input type="text" id="form-field-1" class="myCss col-xs-10 col-sm-2" name="spouse_work_life" value="{$info.spouse_work_life}">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">所属行业</label>
                                    <input type="text" id="form-field-1" class="myCss col-xs-10 col-sm-2" name="spouse_industry" value="{$info.spouse_industry}">
                                 </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-15">单位地址</label>
                                    <div data-toggle="distpicker" id="spouse-company">
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="province" name="spouse_company_province"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="city" name="spouse_company_city"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="district" name="spouse_company_district"></select>
                                        <input style="margin-right: 15px;" id="form-field-16" class="myCss col-xs-10 col-sm-3" type="text" name="spouse_company_address" value={$info.spouse_company_address}>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">单位性质</label>
                                    <input type="text" id="form-field-1" class="myCss col-xs-10 col-sm-2" name="spouse_company_nature" value="{$info.spouse_company_nature}">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">职务职位</label>
                                    <input type="text" id="form-field-2" class="myCss col-xs-10 col-sm-2"  name="spouse_position" value={$info.spouse_position}>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">月收入</label>
                                    <input type="text" id="form-field-2" class="myCss col-xs-10 col-sm-2"  name="spouse_month_income" value={$info.spouse_month_income}>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">备注</label>
                                    <input type="text" id="form-field-2" class="myCss col-xs-10 col-sm-2"  name="spouse_note" value={$info.spouse_note}>
                                </div>
                            </div>
                            <!--担保人-->
                            <div class="list-block assure" style="display: none;">
                                <div class="col-33">
                                    <input type="hidden" name="assure_id" value={$assureInfo.id}>
                                </div>



                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">担保人姓名</label>
                                    <input type="text" id="form-field-1" class="myCss col-xs-10 col-sm-2" name="name" value="{$assureInfo.user_name}">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">身份证号</label>
                                    <input type="text" id="form-field-1" class="bgCcc myCss col-xs-10 col-sm-2" name="assure_identity_no" value="{$assureInfo.identity_no}" readonly="true">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">年龄</label>
                                    <input type="text" id="form-field-2" class="myCss col-xs-10 col-sm-2"  name="age" value={$assureInfo.age}>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-19">学历</label>
                                    <select name="education" class="myCss col-xs-10 col-sm-2" id="form-field-19">
                                        <foreach name="educationItems" item="val" >
                                        <if condition="$key eq $assureInfo['education']">
                                            <option value={$key} selected>{$val}</option>
                                        <else />
                                            <option value={$key}>{$val}</option>
                                        </if>
                                        </foreach>
                                    </select>
                                </div>

                                <div class="form-group" style="float: none;">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-20">房屋类型</label>
                                    <select name="assure_house_type" class="myCss col-xs-10 col-sm-2" id="form-field-20">
                                        <foreach name="houseTypeItems" item="val" >
                                        <if condition="$key eq $assureInfo['house_type']">
                                            <option value={$key} selected>{$val}</option>
                                        <else />
                                            <option value={$key}>{$val}</option>
                                        </if>
                                        </foreach>
                                    </select>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-19">居住年限</label>
                                    <input type="text" id="form-field-2" class="myCss col-xs-10 col-sm-2"  name="live_time" value={$assureInfo.live_time}>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-15">现居住地</label>
                                    <div data-toggle="distpicker" id="assure-now">
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="province" name="assure_now_province"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="city" name="assure_now_city"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="district" name="assure_now_district"></select>
                                        <input style="margin-right: 15px;" id="form-field-16" class="myCss col-xs-10 col-sm-3" type="text" name="assure_address" value={$assureInfo.address}>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-15">户籍</label>
                                    <div data-toggle="distpicker" id="assure-home">
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="province" name="assure_home_province"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="city" name="assure_home_city"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="district" name="assure_home_district"></select>
                                        <input style="margin-right: 15px;" id="form-field-16" class="myCss col-xs-10 col-sm-3" type="text" name="assure_now_address" value={$assureInfo.now_address}>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-20">手机号</label>
                                    <input type="text" id="form-field-2" class="myCss col-xs-10 col-sm-2"  name="assure_telephone" value={$assureInfo.telephone}>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">工作单位</label>
                                    <input type="text" id="form-field-2" class="myCss col-xs-10 col-sm-2"  name="company" value={$assureInfo.company}>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">工作年限</label>
                                    <input type="text" id="form-field-1" class="myCss col-xs-10 col-sm-2" name="work_life" value="{$assureInfo.work_life}">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">所属行业</label>
                                    <input type="text" id="form-field-1" class="myCss col-xs-10 col-sm-2" name="assure_industry" value="{$assureInfo.industry}">
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-15">单位地址</label>
                                    <div data-toggle="distpicker" id="assure-company">
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="province" name="assure_company_province"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="city" name="assure_company_city"></select>
                                        <select style="margin-right: 15px;" class="myCss col-xs-10 col-sm-2" id="district" name="assure_company_district"></select>
                                        <input style="margin-right: 15px;" id="form-field-16" class="myCss col-xs-10 col-sm-3" type="text" name="company_address" value={$assureInfo.company_address}>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1">单位性质</label>
                                    <input type="text" id="form-field-1" class="myCss col-xs-10 col-sm-2" name="company_nature" value="{$assureInfo.company_nature}">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">职务职位</label>
                                    <input type="text" id="form-field-2" class="myCss col-xs-10 col-sm-2"  name="age" value={$assureInfo.office}>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">月收入</label>
                                    <input type="text" id="form-field-2" class="myCss col-xs-10 col-sm-2"  name="assure_month_income" value={$assureInfo.month_income}>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-2">备注</label>
                                    <input type="text" id="form-field-2" class="myCss col-xs-10 col-sm-2"  name="assure_note" value={$assureInfo.note}>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div role="tabpanel" class="tab-pane box" id="ccc">
                        <!-- <h1>车辆消息<span>(标*为必填项)</span></h1> -->
                        <input class="required" type="hidden" name="car_info_id" value={$carInfo.id}>
                        <input id="bank_rate" type="hidden" name="bank_rate" value={$bank_rule.rate}>
                        <div class="list-block">

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">业务类型</label>
                                <select name="business_type" class="myCss col-xs-10 col-sm-2">
                                    <foreach name="carFirmItems" item="val" >
                                    <if condition="$key eq $carInfo['business_type']">
                                        <option value={$key} selected>{$val}</option>
                                    <else />
                                        <option value={$key}>{$val}</option>
                                    </if>
                                    </foreach>
                                </select>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4">车辆类型</label>
                                <select name="car_type" class="myCss col-xs-10 col-sm-2">
                                    <foreach name="carTypeItems" item="val" >
                                    <if condition="$key eq $carInfo['car_type']">
                                        <option value={$key} selected>{$val}</option>
                                    <else />
                                        <option value={$key}>{$val}</option>
                                    </if>
                                    </foreach>
                                </select>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">车辆性质</label>
                                <select name="models_form" class="myCss col-xs-10 col-sm-2">
                                    <foreach name="carModelItems" item="val" >
                                    <if condition="$key eq $carInfo['models_form']">
                                        <option value={$key} selected>{$val}</option>
                                    <else />
                                        <option value={$key}>{$val}</option>
                                    </if>
                                    </foreach>
                                </select>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4">汽车品牌</label>
                                <select name="brand_id" class="myCss col-xs-10 col-sm-2">
                                    <foreach name="carBrand" item="val" >
                                    <if condition="$val['brand_id'] eq $carInfo['brand_id']">
                                        <option value={$val.brand_id} selected>{$val.brand_name}</option>
                                    <else />
                                        <option value={$val.brand_id}>{$val.brand_name}</option>
                                    </if>
                                    </foreach>
                                </select>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">汽车系列</label>
                                <select class="myCss col-xs-10 col-sm-2" name="car_series_id"><option>{$carInfo.car_series_name}</option></select>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4">汽车车型</label>
                                <select class="myCss col-xs-10 col-sm-2" name="car_form_id"><option>{$carInfo.type_name}</option></select>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">座位数</label>
                                <input readonly type="text" id="seat_num" class="bgCcc myCss col-xs-10 col-sm-2" name="seat_no" value="{$carInfo.seat_no}">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">指导价</label>
                                <input readonly class="bgCcc myCss col-xs-10 col-sm-2" id="guide_price" type="text" name="guide_price" value={$carInfo.guide_price}>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">销售价格</label>
                                <input id="sale_price" type="number" name="sale_price" class="myCss col-xs-10 col-sm-2" value={$carInfo.sale_price} >
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">上牌地</label>
                                <select name="license_area" class="myCss col-xs-10 col-sm-2">
                                    <foreach name="licenseList" item="val" >
                                    <if condition="$val['address_name'] eq $carInfo['license_area']">
                                        <option value={$val.address_name} selected>{$val.address_name}</option>
                                    <else />
                                        <option value={$val.address_name}>{$val.address_name}</option>
                                    </if>
                                    </foreach>
                                </select>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">上牌类型</label>
                                <select name="license_type" class="myCss col-xs-10 col-sm-2">
                                    <foreach name="onCardItems" item="val" >
                                    <if condition="$key eq $carInfo['license_type']">
                                        <option value={$key} selected>{$val}</option>
                                    <else />
                                        <option value={$key}>{$val}</option>
                                    </if>
                                    </foreach>
                                </select>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">行驶证</label>
                                <input class="myCss col-xs-10 col-sm-2" type="text" name="driving_license" value={$carInfo.driving_license}>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">年限</label>
                                <select name="term" id="term" class="myCss col-xs-10 col-sm-2">
                                    <foreach name="yearLimitItems" item="val" >
                                    <if condition="$val eq $carInfo['term']">
                                        <option value={$val} selected>{$val}</option>
                                    <else />
                                        <option value={$val}>{$val}</option>
                                    </if>
                                    </foreach>
                                </select>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">公司费率</label>
                                <input class="myCss col-xs-10 col-sm-2" id="company_rate" type="number" name="company_rate" value={$carInfo.company_rate}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">小利率</label>
                                <select name="small_rate" id="small_rate" class="myCss col-xs-10 col-sm-2">
                                    <option>
                                        <switch name="carInfo.small_rate">
                                            <case value="0">
                                                无
                                            </case>
                                            <case value="1">
                                                有
                                            </case>
                                        </switch>
                                    </option>
                                </select>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">签约首付款</label>
                                <input readonly class="bgCcc myCss col-xs-10 col-sm-2" id="sign_first_payment" type="number" name="sign_first_payment" value={$carInfo.sign_first_payment}>
                                <label class="col-sm-1 control-label no-padding-right">签约首付比例</label>
                                <input readonly class="bgCcc myCss col-xs-10 col-sm-2"  id="sign_first_pay_proportion" type="text" placeholder="小于100的小数" name="sign_first_pay_proportion" value={$carInfo.sign_first_pay_proportion}>

                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">实际首付款</label>
                                <input readonly class="bgCcc myCss col-xs-10 col-sm-2" id="real_first_payment" type="number" name="real_first_payment" value={$carInfo.real_first_payment} >
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">实际首付比例</label>
                                <input readonly class="bgCcc myCss col-xs-10 col-sm-2" id="real_first_pay_proportion" type="text" placeholder="小于100的小数" name="real_first_pay_proportion" value={$carInfo.real_first_pay_proportion}>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right">签约贷款额</label>
                                <input readonly class="bgCcc myCss col-xs-10 col-sm-2" id="sign_loan_quota" type="number" name="sign_loan_quota" value={$carInfo.sign_loan_quota}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">签约贷款额比例</label>
                                <input readonly class="bgCcc myCss col-xs-10 col-sm-2" id="sign_loan_proportion" type="text" placeholder="小于100的小数" name="sign_loan_proportion" value={$carInfo.sign_loan_proportion} >
                                <label class="col-sm-1 control-label no-padding-right">实际贷款额</label>
                                <input class="myCss col-xs-10 col-sm-2" id="real_loan_quota" type="number" name="real_loan_quota" value={$carInfo.real_loan_quota}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">实际贷款比例</label>
                                    <input readonly class="bgCcc myCss col-xs-10 col-sm-2" id="real_loan_proportion" type="text" placeholder="小于100的小数" name="real_loan_proportion" value={$carInfo.real_loan_proportion}>

                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">月还款</label>
                                <input readonly class="bgCcc myCss col-xs-10 col-sm-2"  id="month_repayment" type="number" name="month_repayment" value={$carInfo.month_repayment}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">还款总额</label>
                                <input readonly class="bgCcc myCss col-xs-10 col-sm-2" id="repayment_total" type="number" name="repayment_total" value={$carInfo.repayment_total} >
                                <label class="col-sm-1 control-label no-padding-right">佣金</label>
                                <input id="commission" class="bgCcc myCss col-xs-10 col-sm-1" type="number" name="commission" value={$carInfo.commission}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">车商</label>
                                <input id="car-dealer" class="bgCcc myCss col-xs-10 col-sm-1" type="text" name="car_dealer" value={$carInfo.car_dealer}>
                                <label class="col-sm-1 control-label no-padding-right">个人</label>
                                <input id="person" class="bgCcc myCss col-xs-10 col-sm-1" type="text" name="person" value={$carInfo.person}>
                                </div>

                            <input class="required" type="hidden" name="advance_id" value={$advanceInfo.id}>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">按揭服务费</label>
                                <input type="text" id="add1" class="myCss col-xs-10 col-sm-2" name="server_fee" value={$advanceInfo.server_fee}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">公证抵押费</label>
                                <input type="text" id="add2" class="myCss col-xs-10 col-sm-2"  name="mortgage_fee" value={$advanceInfo.mortgage_fee}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">履约保证金</label>
                                <input type="text" id="add3" class="myCss col-xs-10 col-sm-2" name="performance_fee" value={$advanceInfo.performance_fee}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">上牌押金</label>
                                <input type="text" id="add4" class="myCss col-xs-10 col-sm-2"  name="card_on_deposit" value={$advanceInfo.card_on_deposit}>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">担保费</label>
                                <input type="text" id="add5" class="myCss col-xs-10 col-sm-2" name="guarantee_fee" value={$advanceInfo.guarantee_fee}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">上牌费</label>
                                <input type="text" id="add6" class="myCss col-xs-10 col-sm-2"  name="card_on_fee" value={$advanceInfo.card_on_fee}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">手续费</label>
                                <input type="text" id="add7" class="myCss col-xs-10 col-sm-2" name="counter_fee" value={$advanceInfo.counter_fee}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">评估费</label>
                                <input type="text" id="add8" class="myCss col-xs-10 col-sm-2"  name="assess_fee" value={$advanceInfo.assess_fee}>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">GPS费用</label>
                                <input type="text" id="add9" class="myCss col-xs-10 col-sm-2" name="gps_fee" value={$advanceInfo.gps_fee}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">责信险</label>
                                <input type="text" id="add10" class="myCss col-xs-10 col-sm-2"  name="liability_insurance" value={$advanceInfo.liability_insurance}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">参融保险费</label>
                                <input type="text" id="add11" class="myCss col-xs-10 col-sm-2" name="finance_safe_fee" value={$advanceInfo.finance_safe_fee}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">参融购置税</label>
                                <input type="text" id="add12" class="myCss col-xs-10 col-sm-2"  name="finance_buy_fee" value={$advanceInfo.finance_buy_fee}>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">参融装潢费</label>
                                <input type="text" id="add13" class="myCss col-xs-10 col-sm-2" name="finance_decorate_fee" value={$advanceInfo.finance_decorate_fee}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">其他费用</label>
                                <input type="text" id="add24" class="myCss col-xs-10 col-sm-2"  name="other_fee" value={$advanceInfo.other_fee}>

                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">合计</label>
                                <input type="text" id="total-fee" class="myCss col-xs-10 col-sm-2" name="total_fee" value={$advanceInfo.total_fee}>
                            </div>

                            </div>

                    </div>

                    <div role="tabpanel" class="tab-pane box" id="ddd">
                        <div class="list-block">
                            <div style="display: flex;justify-content:flex-start;flex-wrap: wrap;">
                                <foreach name="needUploadFiles" item="_file_set" >
                                    <div class="tabright">
                                        <div class="convent_choice">
                                            <div class="andArea">
                                                <div id="preview{$_file_set.id}">
                                                    <if condition='$_file_set.file_dist neq null'>
                                                        <if condition='$_file_set.is_pic eq 1'>
                                                            <?php
                                                        $arrFile = explode(',', $_file_set['file_dist']);
                                                        if(count($arrFile) > 1){
                                                            echo '<a href="/Admin/Apply/showPic.html?pic_url='.$_file_set['file_dist'].'" target="_blank"><img src="'.$_file_set['file_dist'].'"></a>';
                                                            }else{
                                                            echo '<img class="js_img" src="'.$_file_set['file_dist'].'">';
                                                            }
                                                            ?>
                                                            <else/>
                                                            <video height="115" width="150" src="{$_file_set.file_dist}" controls="controls"></video>
                                                        </if>
                                                        <else/>
                                                        <img src="/Public/Common/images/preview.png">
                                                    </if>

                                                </div>
                                            </div>
                                            <div>
                                                <div class="filePicker">{$_file_set.file_key}</div>
                                                <input type="hidden" class="img_box{$_file_set.id}" name="{$_file_set.e_file_key}" value="{$_file_set.file_dist}"/>
                                                <if condition="($info['check_status'] eq -1  and $info['status'] neq 0) or ($info['status'] eq 9  or  $info['status'] eq 12 )" >
                                                    <input id="fileId{$_file_set.id}" type="file" multiple="multiple" name="file" class="uploadA" data="{$_file_set.id}" style="opacity: 0;" />
                                                </if>
                                            </div>
                                        </div>
                                    </div>
                                </foreach>
                            </div>
                        </div>
                    </div>
                    <div role="tabpanel" class="tab-pane box" id="eee">
                        <!-- <h1>业务进度</h1> -->
                        <div class="list-block">
                            <table>
                                <tr>
                                    <td>职位</td>
                                    <td>状态</td>
                                    <td>日期</td>
                                    <td>操作</td>
                                </tr>
                                <volist name='checkInfo' id='check'>
                                <tr>
                                    <td class="bule">{$check.type}-{$check.admin_name}</td>
                                    <td>
                                        <switch name='check.check_status'>
                                            <case value='-5'>客户提交征信</case>
                                            <case value='-4'>央行征信通过</case>
                                            <case value='-3'>公检法查询通过</case>
                                            <case value='-2'>同盾查询通过</case>
                                            <case value='-1'>业务已提交</case>
                                            <case value='1'>
                                                <switch name="check.status">
                                                    <case value="1">
                                                        渠道内勤审核通过
                                                    </case>
                                                    <case value="11">
                                                        渠道内勤审核待定
                                                    </case>
                                                    <case value="12">
                                                        渠道内勤审核退回
                                                    </case>
                                                </switch>
                                            </case>
                                            <case value='2'>
                                                <switch name="check.status">
                                                    <case value="1">
                                                        区域经理审核通过
                                                    </case>
                                                    <case value="11">
                                                        区域经理审核待定
                                                    </case>
                                                    <case value="12">
                                                        区域经理审核退回
                                                    </case>
                                                </switch>
                                            </case>
                                            <case value='3'>
                                                <switch name="check.status">
                                                    <case value="1">
                                                        审核助理审核通过
                                                    </case>
                                                    <case value="11">
                                                        审核助理审核待定
                                                    </case>
                                                    <case value="12">
                                                        审核助理审核退回
                                                    </case>
                                                </switch>
                                            </case>
                                            <case value='4'>
                                                <switch name="check.status">
                                                    <case value="1">
                                                        审核专员审核通过
                                                    </case>
                                                    <case value="11">
                                                        审核专员审核待定
                                                    </case>
                                                    <case value="12">
                                                        审核专员审核退回
                                                    </case>
                                                </switch>
                                            </case>
                                            <case value='5'>
                                                <switch name="check.status">
                                                    <case value="1">
                                                        审核主管审核通过
                                                    </case>
                                                    <case value="11">
                                                        审核主管审核待定
                                                    </case>
                                                    <case value="12">
                                                        审核主管审核退回
                                                    </case>
                                                </switch>
                                            </case>
                                            <case value='6'>
                                                <switch name="check.status">
                                                    <case value="1">
                                                        审核经理审核通过
                                                    </case>
                                                    <case value="11">
                                                        审核经理审核待定
                                                    </case>
                                                    <case value="12">
                                                        审核经理审核退回
                                                    </case>
                                                </switch>
                                            </case>
                                            <case value='7'>垫资申请已添加</case>
                                            <case value='8'>财务助理审核通过</case>
                                            <case value='9'>财务已打款</case>
                                            <case value='10'>垫资资料已补录</case>
                                            <case value='11'>抄单资料已确认</case>
                                            <case value='12'>合同已抄单</case>
                                            <case value='13'>内勤主管审核通过</case>
                                            <case value='14'>合同已送行</case>
                                            <case value='15'>合同由银行接收</case>
                                            <case value='16'>合同从银行送回</case>
                                            <case value='17'>合同已接收</case>
                                            <case value='19'>合同送公证处</case>
                                            <case value='20'>合同从公证处收回</case>
                                            <case value='21'>公证书确认完毕</case>
                                            <case value='22'>抵押资料寄至渠道</case>
                                            <case value='23'>抵押资料渠道已收到</case>
                                            <case value='24'>合同已快递银行</case>
                                            <case value='25'>抵押资料已补录</case>
                                            <case value='26'>公司资料已转交</case>
                                            <case value='27'>银行已收到合同快递</case>
                                            <case value='28'>归档资料已递交完毕</case>
                                            <case value='29'>归档资料已送交银行</case>
                                            <case value='30'>资料已归档</case>
                                        </switch>
                                    </td>
                                 <!--    <td><if condition='$check.status eq 1'>审核通过<else/>审核未通过</if></td> -->
                                    <td>{$check.add_time|date='Y-m-d H:i:s',###}</td>
                                    <td><button data-id='{$check.id}' class="btn btn-sm btn-default checkin" type="button">查看</button></td>
                                </tr>
                                </volist>
                            </table>
                        </div>
                    </div>

                    <div role="tabpanel" class="tab-pane box" id="fff">
                        <h2>协议资料</h2>
                        <div class="list-block shul" style="overflow-y: hidden;clear: both;">

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">业务性质</label>
                                <select name="business_type"  class="myCss col-xs-10 col-sm-2" disabled>
                                    <foreach name="carFirmItems" item="val" >
                                    <if condition="$key eq $carInfo['business_type']">
                                        <option value={$key} selected>{$val}</option>
                                    <else />
                                        <option value={$key}>{$val}</option>
                                    </if>
                                    </foreach>
                                </select>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">车辆类型</label>
                                <select name="car_type" class="myCss col-xs-10 col-sm-2" disabled>
                                    <foreach name="carTypeItems" item="val" >
                                    <if condition="$key eq $carInfo['car_type']">
                                        <option value={$key} selected>{$val}</option>
                                    <else />
                                        <option value={$key}>{$val}</option>
                                    </if>
                                    </foreach>
                                </select>

                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">车辆性质</label>
                                <select name="models_form" class="myCss col-xs-10 col-sm-2" disabled>
                                    <foreach name="carModelItems" item="val" >
                                    <if condition="$key eq $carInfo['models_form']">
                                        <option value={$key} selected>{$val}</option>
                                    <else />
                                        <option value={$key}>{$val}</option>
                                    </if>
                                    </foreach>
                                </select>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">汽车品牌</label>
                                <select name="brand_id" class="myCss col-xs-10 col-sm-2" disabled>
                                    <foreach name="carBrand" item="val" >
                                    <if condition="$val['brand_id'] eq $carInfo['brand_id']">
                                        <option value={$val.brand_id} selected>{$val.brand_name}</option>
                                    <else />
                                        <option value={$val.brand_id}>{$val.brand_name}</option>
                                    </if>
                                    </foreach>
                                </select>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3" >汽车系列</label>
                                <select class="myCss col-xs-10 col-sm-2" name="car_series_id" disabled><option>{$carInfo.car_series_name}</option></select>
                                <!--<input type="text" class="myCss col-xs-10 col-sm-2" value="{$carInfo.car_series_name}">-->
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">汽车车型</label>
                               <select class="myCss col-xs-10 col-sm-2" name="car_form_id" disabled><option>{$carInfo.type_name}</option></select>

                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3" disabled>指导价</label>
                                <input readonly class=" myCss col-xs-10 col-sm-2" type="text" name="guide_price" value={$carInfo.guide_price} disabled>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3" disabled>销售价格</label>
                                 <input  type="number" name="sale_price" class="myCss col-xs-10 col-sm-2" value={$carInfo.sale_price} disabled>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">上牌类型</label>
                                <select name="license_type" class="myCss col-xs-10 col-sm-2" disabled>
                                    <foreach name="onCardItems" item="val" >
                                    <if condition="$key eq $carInfo['license_type']">
                                        <option value={$key} selected>{$val}</option>
                                    <else />
                                        <option value={$key}>{$val}</option>
                                    </if>
                                    </foreach>
                                </select>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">年限</label>
                               <select name="term" class="myCss col-xs-10 col-sm-2" disabled>
                                    <foreach name="yearLimitItems" item="val" >
                                    <if condition="$val eq $carInfo['term']">
                                        <option value={$val} selected>{$val}</option>
                                    <else />
                                        <option value={$val}>{$val}</option>
                                    </if>
                                    </foreach>
                                </select>

                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">公司费率</label>
                               <input class="myCss col-xs-10 col-sm-2" type="number" name="company_rate" value={$carInfo.company_rate} disabled>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">贷款额</label>
                                <input type="text" class="myCss col-xs-10 col-sm-2" value="{$carInfo.real_loan_quota}" disabled>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">贷款银行</label>
                                <input type="text" class="myCss col-xs-10 col-sm-2" value="{$bankInfo.bank_name}" disabled>

                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">佣金</label>
                                <input class="myCss col-xs-12 col-sm-1" type="number" name="commission" value={$carInfo.commission} disabled>

                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">车商</label>
                                <input class="myCss col-xs-12 col-sm-1" type="text" name="car_dealer" value="{$carInfo.car_dealer}" disabled>

                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">个人</label>
                                <input type="text" class="myCss col-xs-12 col-sm-1" value="{$carInfo.person}" disabled>

                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">车型返利</label>
                                <input type="text" class="myCss col-xs-12 col-sm-1" value="{$carInfo.car_commission}" disabled>
                            </div>
                        </div>

                        <div class="list-block shul" style="overflow-y: hidden;clear: both;">
                        <div class="form-group">
                            <label class="col-sm-1 control-label no-padding-right" for="form-field-1">按揭服务费</label>
                            <input type="text" id="" class="myCss col-xs-10 col-sm-2" name="server_fee" value={$advanceInfo.server_fee} disabled>

                            <label class="col-sm-1 control-label no-padding-right" for="form-field-2">公证抵押费</label>
                            <input type="text" id="" class="myCss col-xs-10 col-sm-2"  name="mortgage_fee" value={$advanceInfo.mortgage_fee} disabled>
                            <label class="col-sm-1 control-label no-padding-right" for="form-field-1">履约保证金</label>
                            <input type="text" id="" class="myCss col-xs-10 col-sm-2" name="performance_fee" value={$advanceInfo.performance_fee} disabled>
                            <label class="col-sm-1 control-label no-padding-right" for="form-field-2">上牌押金</label>
                            <input type="text" id="" class="myCss col-xs-10 col-sm-2"  name="card_on_deposit" value={$advanceInfo.card_on_deposit} disabled>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-1 control-label no-padding-right" for="form-field-1">担保费</label>
                            <input type="text" id="" class="myCss col-xs-10 col-sm-2" name="guarantee_fee" value={$advanceInfo.guarantee_fee} disabled>
                            <label class="col-sm-1 control-label no-padding-right" for="form-field-2">上牌费</label>
                            <input type="text" id="" class="myCss col-xs-10 col-sm-2"  name="card_on_fee" value={$advanceInfo.card_on_fee} disabled>
                            <label class="col-sm-1 control-label no-padding-right" for="form-field-1">手续费</label>
                            <input type="text" id="" class="myCss col-xs-10 col-sm-2" name="counter_fee" value={$advanceInfo.counter_fee} disabled>
                            <label class="col-sm-1 control-label no-padding-right" for="form-field-2">评估费</label>
                            <input type="text" id="" class="myCss col-xs-10 col-sm-2"  name="assess_fee" value={$advanceInfo.assess_fee} disabled>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-1 control-label no-padding-right" for="form-field-1">GPS费用</label>
                            <input type="text" id="gps_fee" class="myCss col-xs-10 col-sm-2" name="gps_fee" value={$advanceInfo.gps_fee} disabled>
                            <label class="col-sm-1 control-label no-padding-right" for="form-field-2">责信险</label>
                            <input type="text" id="" class="myCss col-xs-10 col-sm-2"  name="liability_insurance" value={$advanceInfo.liability_insurance} disabled>
                            <label class="col-sm-1 control-label no-padding-right" for="form-field-1">参融保险费</label>
                            <input type="text" id="" class="myCss col-xs-10 col-sm-2" name="finance_safe_fee" value={$advanceInfo.finance_safe_fee} disabled>
                            <label class="col-sm-1 control-label no-padding-right" for="form-field-2">参融购置税</label>
                            <input type="text" id="" class="myCss col-xs-10 col-sm-2"  name="finance_buy_fee" value={$advanceInfo.finance_buy_fee} disabled>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-1 control-label no-padding-right" for="form-field-1">参融装潢费</label>
                            <input type="text" id="" class="myCss col-xs-10 col-sm-2" name="finance_decorate_fee" value={$advanceInfo.finance_decorate_fee} disabled>
                            <label class="col-sm-1 control-label no-padding-right" for="form-field-2">其他费用</label>
                            <input type="text" id="" class="myCss col-xs-10 col-sm-2"  name="other_fee" value={$advanceInfo.other_fee} disabled>

                            <label class="col-sm-1 control-label no-padding-right" for="form-field-1">合计</label>
                            <input type="text" id="" class="myCss col-xs-10 col-sm-2" name="total_fee" value={$advanceInfo.total_fee} disabled>
                        </div>
                            </div>


                        <h2>垫资申请</h2>
                        <div class="list-block shul" style="overflow-y: hidden;clear: both;">

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-16">收款单位</label>
                                <input class="myCss col-xs-10 col-sm-3" type="text" value="{$matInfo.pay_name}" disabled>

                                <label class="col-sm-1 control-label no-padding-right" for="form-field-16">收款银行</label>
                                <input class="myCss col-xs-10 col-sm-3" type="text" value="{$matInfo.bank_name}" disabled>

                                <label class="col-sm-1 control-label no-padding-right" for="form-field-16">收款账号</label>
                                <input class="myCss col-xs-10 col-sm-3" type="text" value="{$matInfo.bank_card}" disabled>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">预约时间</label>
                                <input type="text" class="myCss col-xs-10 col-sm-2" value="{$matInfo.add_time|date='Y-m-d',###}" disabled>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">预约人</label>
                                <input type="text" class="myCss col-xs-10 col-sm-2" value="{$matInfo.user_name}" disabled>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">资金预约时间</label>
                                <input type="text" class="myCss col-xs-10 col-sm-2" value="{$matInfo.apply_time|date='Y-m-d H:i:s',###}" disabled>
                            </div>
                        </div>


                        <h2>打款信息</h2>
                        <form action="{:U('Check/pay_money')}" method="post" id='pay'>
                            <div class="list-block shul" style="overflow-y: hidden;clear: both;">

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-16">打款银行</label>
                                    <input class="myCss col-xs-10 col-sm-2" type="text" name='pay_bank' value="{$matInfo.pay_bank}">

                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-16">打款账号</label>
                                    <input class="myCss col-xs-10 col-sm-2" type="text" name="pay_card" value='{$matInfo.pay_card}'>


                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-3">内扣/月结</label>
                                    <select class="myCss col-xs-10 col-sm-2" name="monthly" id="monthly">
                                    <option value="0">内扣</option>
                                    <option value="1">月结</option>
                                    </select>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-3">垫资金额</label>
                                    <input type="text" class="myCss col-xs-10 col-sm-2" name ="advance_money" id="advance_money" value='{$matInfo.advance_money}'>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-3">垫资日期</label>
                                    <input type="text" id="advance_time" name="advance_time" value="<empty name='matInfo.advance_time'>{:date('Y-m-d')}<else/>{$matInfo.advance_time|date='Y-m-d', ###}</empty>" class="myCss col-xs-10 col-sm-2" disabled />
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-3">放贷金额</label>
                                    <input type="text" class="myCss col-xs-10 col-sm-2" name="lending_money" value='{$carInfo.sign_loan_quota}'>
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-3">放贷日期</label>
                                     <input type="text" id="lending_time"  name="lending_time" value="<empty name='matInfo.lending_time'>{:date('Y-m-d')}<else/>{$matInfo.lending_time|date='Y-m-d', ###}</empty>" class="myCss col-xs-10 col-sm-2" disabled />
                                </div>

                                <div class="form-group"></div>

                                <div class="form-group" style="text-align: right;">
                                    <input type="hidden" name="user_id" value='{$info.id}'>
                                    <input type="hidden" name="type" id='type' value=''>
                                    <if condition="$info.check_status eq 8">
                                        <button type="submit" id='advance' class="btn btn-success">垫资确认</button>
                                        <else/>
                                        <button type="submit" id='payMoney' class="btn btn-success">放贷确认</button>
                                    </if>
                                </div>
                            </div>
                        </form>
                        <h2>退垫记录</h2>
                        <div class="list-block table-responsive" style="overflow-y: hidden;clear: both;margin-left:20px">

                            <table class="table">
                                <thead>
                                  <tr>
                                    <th>金额</th>
                                    <th>日期</th>
                                    <th>操作人</th>
                                    <th>原因</th>
                                  </tr>
                                </thead>
                                <tbody>
                                  <tr>
                                    <th>待定</th>
                                    <th>待定</th>
                                    <th>待定</th>
                                    <th>待定</th>
                                  </tr>
                                </tbody>
                              </table>
                        </div>



                    </div>
                    <div role="tabpanel" class="tab-pane box" id="ggg">
                          <h2>垫资申请</h2>
                        <div class="list-block shul" style="overflow-y: hidden;clear: both;">

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-16">收款单位</label>
                                <input class="myCss col-xs-10 col-sm-3" type="text" value="{$matInfo.pay_name}" disabled>

                                <label class="col-sm-1 control-label no-padding-right" for="form-field-16">收款银行</label>
                                <input class="myCss col-xs-10 col-sm-3" type="text" value="{$matInfo.bank_name}" disabled>

                                <label class="col-sm-1 control-label no-padding-right" for="form-field-16">收款账号</label>
                                <input class="myCss col-xs-10 col-sm-3" type="text" value="{$matInfo.bank_card}" disabled>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">预约时间</label>
                                <input type="text" class="myCss col-xs-10 col-sm-2" value="{$matInfo.add_time|date='Y-m-d',###}" disabled>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">预约人</label>
                                <input type="text" class="myCss col-xs-10 col-sm-2" value="{$matInfo.user_name}" disabled>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-3">资金预约时间</label>
                                <input type="text" class="myCss col-xs-10 col-sm-2" value="{$matInfo.apply_time|date='Y-m-d H:i:s',###}" disabled>
                            </div>
                        </div>

                  <h2>财务助理审核</h2>
                       <form action="{:U('Check/MatApply_check')}" method="post">
                        <div class="list-block" style='margin-left: 3%'>
                            <div class="row">
                                <div class="item col-33 ">
                                    <label>审核结果:</label>
                                    <select name="Cstatus" id="user_select">
                                    <option value="1">通过</option>
                                    <option value="0">未通过</option>
                                      </select>
                                </div>
                            </div>
                        <div id='check_detail'>
                            <div class="row">
                                <label>审核意见:</label>
                                <textarea name="opinion" id="" cols="60" rows="5"></textarea>
                            </div>
                            <div class="row">
                                <label>备注:</label>
                                <input style="width: 440px;" type="text" name="note">
                            </div>
                        </div>
                         <div class="row">
                                <label></label>
                                <input type="hidden" name="user_id" value="{$info.id}">
                                <input type="submit" class="button01" value="提交">
                         </div>
                        </div>
                    </form>
                </div>


                </div>
                </form>
        </div>
</div>
<div id="myModal" class="modal fade in" style="display: none;">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button data-dismiss="modal" class="close" type="button">×</button>
                <h4 class="modal-title">详情页面</h4>
            </div>
            <div class="modal-body" style='height:200px;'></div>
            <!-- <div class="modal-footer">
                <button class="btn btn-danger adopt" data-type='0' type="button">删除</button>
            </div> -->
        </div>
    </div>
</div>

<script src="http://www.jq22.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://www.jq22.com/jquery/bootstrap-3.3.4.js"></script>
<script src="__PUBLIC__/Admin/js/distpicker.data.js"></script>
<script src="__PUBLIC__/Admin/js/distpicker.js"></script>
<script src="__PUBLIC__/Admin/js/main.js"></script>
<!-- 上传文件 -->
<script type="text/javascript" src='{:COM}js/daterangepicker.min.js'></script>
<script type="text/javascript">
  $('input.datepicker').datetimepicker({format : "yyyy-mm-dd", minView : 2, autoclose : true});
    $('.checkin').click(function(){
            obj = $(this), id = obj.data('id');
            var html = '';
            $.post('{:U("Apply/check_info")}', {id: id}, function(data){

                    html = '<p class="col-sm-6">审核人：' + data.admin_name + '</p>';
                    html += '<p class="col-sm-6">身份：' + data.type + '</p>';
                    if(data.status==0){
                      html += '<p class="col-sm-6">未通过类型：' + data.refuse_name + '</p>';
                      html += '<p class="col-sm-6">未通过原因：' + data.refuse_reason + '</p>';
                    }else{
                      html += '<p class="col-sm-6">通过意见：' + data.opinion + '</p>';
                      html += '<p class="col-sm-6">通过备注：' + data.note + '</p>';
                    }
                    $('.modal-body').html(html);
                    $('#myModal').show();
                   // $('#myModal').modal('show');
            });
        });

      $(".close").click(function(){
         $('#myModal').hide();
      });
             $('#cancel').click(function(){
      var user_id={$info.id|default=0};
      $.post('{:U("Index/cancel_status")}',{id:user_id},function(data){
        if(data.status==1){
           location.href='{:U("Check/manager")}';
        }else{
           alert(data.info);
           window.history.back();
        }
      });
    });

             // 初始化地区户籍
    $("#household-registration").distpicker({
      province: '{$h_areaInfo.province}',
      city: '{$h_areaInfo.city}',
      district: '{$h_areaInfo.district}'
    });

    // 初始化地区现居住地
    $("#now-address").distpicker({
      province: '{$now_areaInfo.province}',
      city: '{$now_areaInfo.city}',
      district: '{$now_areaInfo.district}'
    });

    // 初始化地区单位地址
    $("#distpicker").distpicker({
      province: '{$c_areaInfo.province}',
      city: '{$c_areaInfo.city}',
      district: '{$c_areaInfo.district}'
    });

    // 初始化配偶户籍
    $("#spouse-home").distpicker({
      province: '{$s_h_areaInfo.province}',
      city: '{$s_h_areaInfo.city}',
      district: '{$s_h_areaInfo.district}'
    });

    // 初始化配偶现居住地
    $("#spouse-now").distpicker({
      province: '{$s_now_areaInfo.province}',
      city: '{$s_now_areaInfo.city}',
      district: '{$s_now_areaInfo.district}'
    });

    // 初始化配偶单位地址
    $("#spouse-company").distpicker({
      province: '{$s_c_areaInfo.province}',
      city: '{$s_c_areaInfo.city}',
      district: '{$s_c_areaInfo.district}'
    });

    // 初始化担保人户籍
    $("#assure-home").distpicker({
      province: '{$a_h_areaInfo.province}',
      city: '{$a_h_areaInfo.city}',
      district: '{$a_h_areaInfo.district}'
    });

    // 初始化担保人现居住地
    $("#assure-now").distpicker({
      province: '{$a_now_areaInfo.province}',
      city: '{$a_now_areaInfo.city}',
      district: '{$a_now_areaInfo.district}'
    });

    // 初始化担保人单位地址
    $("#assure-company").distpicker({
      province: '{$a_c_areaInfo.province}',
      city: '{$a_c_areaInfo.city}',
      district: '{$a_c_areaInfo.district}'
    });

      //垫资
      $('#advance').click(function(){
        if ($("input[name='pay_bank']").val()=='') {
            alert('请输入打款银行');
        }else if ($("input[name='pay_card']").val()=='') {
            alert('请输入打款账号');
        }else if ($("input[name='advance_money']").val()=='') {
            return false;
        }else if ($("input[name='advance_time']").val()=='') {
            return false;
        }

        $('#type').val(0);
        $('#pay').submit();

      });

      $('#payMoney').click(function(){
        $('#type').val(1);
        $('#pay').submit();
      });

    // 主贷人和紧急联系人切换
    $(function(){
        $('.info_top').find('li').click(function(elm){
            cureent_index = $(this).index();
            if(cureent_index == 0){
                $('.spouse').css("display","none");
                $('.assure').css("display","none");
                $('.urgent-contactor').css("display","none");
                $('.base-info').css("display","block");
            }else if(cureent_index == 1){
                $('.spouse').css("display","none");
                $('.assure').css("display","none");
                $('.urgent-contactor').css("display","block");
                $('.base-info').css("display","none");
            }else if(cureent_index == 2){
                $('.spouse').css("display","none");
                $('.assure').css("display","block");
                $('.urgent-contactor').css("display","none");
                $('.base-info').css("display","none");
            }else if(cureent_index == 3){
                $('.spouse').css("display","block");
                $('.assure').css("display","none");
                $('.urgent-contactor').css("display","none");
                $('.base-info').css("display","none");
            }
            $(this).addClass("active").siblings("").removeClass("active");
        });
    });

    //根据是否内扣计算打款金额
    $("#monthly").change(function(){
      monthly=$(this).val();
//        alert($('#gps_fee').val());
        if(monthly==0){
            $('#advance_money').val($('#advance_money').val()-$('#gps_fee').val());
        }
        else
        {
            $('#advance_money').val($('#advance_money').val()*1+$('#gps_fee').val()*1);
        }
     });
</script>